package com.jemmyee.pizza.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "cost_pipeline", catalog = "milestone.dbo")
public class CostPipeline implements java.io.Serializable {

	private Integer id;
	private String customCode;
	private String customName;
	private String address;
	private String tel;
	private Float price;
	private String remark;
	private String handler;
	private Date handleDate;

	public CostPipeline() {
		super();
	}

	public CostPipeline(String customCode, String customName, String address,
			String tel, Float price, String remark, String handler,
			Date handleDate) {
		super();
		this.customCode = customCode;
		this.customName = customName;
		this.address = address;
		this.tel = tel;
		this.price = price;
		this.remark = remark;
		this.handler = handler;
		this.handleDate = handleDate;
	}

	@GenericGenerator(name = "generator", strategy = "increment")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "custom_code", length = 20)
	public String getCustomCode() {
		return customCode;
	}

	public void setCustomCode(String customCode) {
		this.customCode = customCode;
	}

	@Column(name = "custom_name", length = 50)
	public String getCustomName() {
		return customName;
	}

	public void setCustomName(String customName) {
		this.customName = customName;
	}

	@Column(name = "address", length = 500)
	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	@Column(name = "tel", length = 20)
	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	@Column(name = "price", precision = 12, scale = 0)
	public Float getPrice() {
		return price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	@Column(name = "remark", length = 200)
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	@Column(name = "handler", length = 50)
	public String getHandler() {
		return handler;
	}

	public void setHandler(String handler) {
		this.handler = handler;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "handle_date", length = 0)
	public Date getHandleDate() {
		return handleDate;
	}

	public void setHandleDate(Date handleDate) {
		this.handleDate = handleDate;
	}
}
